package com.cy.springcloudalibaba.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: 用户属性
 * @ClassName: UserProperty
 * @Author: chenyu
 * @Date: 2025/1/10 17:35
 */
@Data
@Component
@ConfigurationProperties(prefix = "user")
public class UserProperty {

    private String name;

    private int age;
}
